package org.rain.bee.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@MapperScan("org.rain.bee.dao")
@ComponentScan("org.rain.bee.service")
@ComponentScan(basePackages = "org.rain.bee.controller")

@EnableDiscoveryClient
@RestController
@SpringBootApplication
public class BeeApplication {
	
	@RequestMapping("/")
	String home() {
		return "Hello World!";
	}
	
	public static void main(String[] args) {
		SpringApplication.run(BeeApplication.class, args);
	}

}
